package com.jcroke.swing08;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import com.jcroke.swing001.Surface01;


@SuppressWarnings("serial")
public class MovingScaling extends JFrame {

	public MovingScaling() {

		initUI();
	}

	private void initUI() {

		setTitle("Moving and scaling");

		add(new Surface01());

		setSize(300, 300);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLocationRelativeTo(null);
	}

	public static void main(String[] args) {

		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				MovingScaling ms = new MovingScaling();
				ms.setVisible(true);
			}
		});
	}
}